package com.utils.lib.http;

public class UConstant {
    public static String AD_F = "adsense";
    public static String AD_H = "getAdInfo";
    public static String AD_V = "1";
    public static String MARKET = "ali";//AnalyticsConfig.getChannel(BaseApplication.getInstance())
    public static String APP_KEY = "";
    public static String APP_SIGN = "";
    public static String POSITION_ID = "";
    public static String APP_ID = "";
    public static String BASE_URL = "http://api.sjsj.cn/index.php";
    public static String QYID = "";

    public static String APP_NAME = "";
    public static int APP_THEME_COLOR = 0;
    public static int LAYOUT_COLOR = 0;
    public static int TEXT_COLOR = 0;
    public static int TEXT_LAYOUT_COLOR = 0;

    /**
     * @param F  默认adsense
     * @param H  默认getAdInfo
     * @param V  默认0
     * @param market  渠道
     * @param key       当前app key
     * @param sign 当前app sign
     * @param position_id 广点通启动屏id
     * @param app_id    广点通id
     * @param base_url 广告网址
     */
    public static void initConstant(String F, String H, String V, String market, String key,
                                    String sign, String position_id, String app_id, String base_url) {
        AD_F = F;
        AD_H = H;
        AD_V = V;
        MARKET = market;
        APP_KEY = key;
        APP_SIGN = sign;
        POSITION_ID = position_id;
        APP_ID = app_id;
        BASE_URL = base_url;
    }

    /**
     * @param market 渠道
     * @param key appkey
     * @param sign 当前app sign
     * @param position_id 广点通 id
     * @param app_id  广点通id
     * @param base_url 广告接口地址
     */
    public static void initConstant(String market, String key,
                                    String sign, String position_id, String app_id, String base_url) {
        MARKET = market;
        APP_KEY = key;
        APP_SIGN = sign;
        POSITION_ID = position_id;
        APP_ID = app_id;
        BASE_URL = base_url;
    }
    /**
     * @param market 渠道
     * @param key appkey
     * @param sign 当前app sign
     * @param position_id 广点通 id
     * @param app_id  广点通id
     */
    public static void initConstant(String market, String key, String sign, String position_id, String app_id) {
        MARKET = market;
        APP_KEY = key;
        APP_SIGN = sign;
        POSITION_ID = position_id;
        APP_ID = app_id;
    }

    /**
     *
     * @param market 渠道
     * @param key  当前appkey
     * @param sign 当前app Sign
     * @param qyid  趣赢 id
     */
    public static void initConstant(String market, String key, String sign, String qyid) {
        MARKET = market;
        APP_KEY = key;
        APP_SIGN = sign;
        QYID = qyid;
    }

    /**
     * @param market 当前渠道
     * @param key 当前appkey
     * @param sign  当前app加密sign
     */
    public static void initConstant(String market, String key, String sign) {
        MARKET = market;
        APP_KEY = key;
        APP_SIGN = sign;
    }
    /**
     * @param url  接口地址
     */
    public static void initConstant(String url) {
        BASE_URL = url;
    }

    public static void initSplash(String app_name, int app_theme_color, int layout_color, int text_color,int text_layout_color) {
        APP_NAME = app_name;
        APP_THEME_COLOR = app_theme_color;
        LAYOUT_COLOR = layout_color;
        TEXT_COLOR = text_color;
        TEXT_LAYOUT_COLOR = text_layout_color;
    }


}
